/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package serverside;

import com.sun.org.apache.bcel.internal.generic.GETFIELD;
import java.util.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Ahmed Osama
 */
public class Main {
    private static boolean notExit = false;

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        while(!notExit)
        {
            try {
                System.out.print("Command:");
                InputStreamReader input = new InputStreamReader(System.in);
                BufferedReader reader = new BufferedReader(input);

                
                String str;
                str = reader.readLine();
                if(str.equals("exit"))
                {
                    notExit = true;
                }
                else if(str.equals("close server"))
                {
                    
                }
                else
                {
                     System.out.println("UnKnown Command");
                }
            } 
            catch (IOException ex) {
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
            }
            
            
        }
    }

}
